package com.sigetdriver;

import com.sigetdriver.controller.ZonaController;
import com.sigetdriver.entities.ZonaBean;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;

public class UbicarZona_PruebaBorrar extends Activity {
	
	private TextView tvZonaName;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ubicar_zona__prueba_borrar);
		tvZonaName = (TextView)findViewById(R.id.zona_name);
//		-12.236068, -76.911545 calle 9
//		-12.233531, -76.910537
//		-12.233929, -76.909292 -12.233133, -76.910172
		ZonaBean zona = ZonaController.getInstance()
				.ubicarZona(-12.233133,-76.910172);
		tvZonaName.setText(zona.getNombre());
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.ubicar_zona__prueba_borrar, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
}
